#ifndef USERLOGINCMD_H
#define USERLOGINCMD_H

#include "Command/BaseCmd.h"
#include "Protocol/CloudProtocol.h"

class UserLoginCmd : public BaseCmd
{
    Q_OBJECT

public:
    enum{FunctionCode = CloudProtocol::UserLogin};

    Q_INVOKABLE explicit UserLoginCmd(QObject *parent = 0);

    Package toPackage();
    void unPackage(Package package);

    QByteArray loginTime() const;
    void setLoginTime(const QByteArray &LoginTime);

    QString account() const;
    void setAccount(const QString &account);

    QString password() const;
    void setPassword(const QString &password);

private:
    QByteArray m_loginTime;
    QString m_account;
    QString m_password;


};

#endif // USERLOGINCMD_H
